﻿using System;
using System.Web.UI.WebControls;
using NazSoft.Framework;

public partial class SitePages : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
    {

        if (e.Row.RowState == DataControlRowState.Normal || e.Row.RowState == DataControlRowState.Alternate)
        {
            if (e.Row.DataItemIndex != -1)
            {
                LinkButton dd = e.Row.Controls[0].Controls[0] as LinkButton;
                dd.OnClientClick = "return confirm_delete();";
            }
        }
    }
}
